package com.fau.wmbj.server.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * 系统配置
 *
 * @author jiawei
 * @version 1.0
 * @datetime 2023-03-21 16:49
 */
@Getter
@Setter
@Entity(name = "f_config")
@Table(name = "f_config", indexes = {
        @Index(name = "idx_config_key", columnList = "config_key", unique = true)
})
public class SysConfig extends BaseEntity<Long> {

    /**
     * 配置名称
     */
    @Column(name = "config_name", length = 50)
    private String configName;


    /**
     * 配置值
     */
    @Lob
    @Column(name = "config_value")
    private String configValue;


    /**
     * 配置key
     */
    @Column(name = "config_key", length = 50)
    private String configKey;

    /**
     * 配置分组
     */
    @Column(name = "config_group", length = 50)
    private String configGroup;

}
